package com.example.designpartten.factory.product;

public class Client {
    public static void main(String[] args) {

        Creator creator = new ConCreator();
        Product product = creator.createProduct(ConcreateProduct1.class);
        product.method2();

        Product product2 = creator.createProduct(ConcreateProduct2.class);
        product2.method2();
    }
}
